package com.psl.action.work.sell;

import com.psl.services.work.sell.SellServices;

/**
 * Created by mioko on 2017/9/4.
 */
public class sellinput {
    private int id;
    private String h_no;
    private String h_name;
    private String h_size;
    private String h_r;
    private String h_n;
    private int h_num;
    private String h_unit;
    private String h_senddate;
    private String h_ticketno;
    private int c_id;
    private String c_name;
    private String usepackage;
    private String remark;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getH_no() {
        return h_no;
    }

    public void setH_no(String h_no) {
        this.h_no = h_no;
    }

    public String getH_name() {
        return h_name;
    }

    public void setH_name(String h_name) {
        this.h_name = h_name;
    }

    public String getH_size() {
        return h_size;
    }

    public void setH_size(String h_size) {
        this.h_size = h_size;
    }

    public String getH_r() {
        return h_r;
    }

    public void setH_r(String h_r) {
        this.h_r = h_r;
    }

    public String getH_n() {
        return h_n;
    }

    public void setH_n(String h_n) {
        this.h_n = h_n;
    }

    public int getH_num() {
        return h_num;
    }

    public void setH_num(int h_num) {
        this.h_num = h_num;
    }

    public String getH_unit() {
        return h_unit;
    }

    public void setH_unit(String h_unit) {
        this.h_unit = h_unit;
    }

    public String getH_senddate() {
        return h_senddate;
    }

    public void setH_senddate(String h_senddate) {
        this.h_senddate = h_senddate;
    }

    public String getH_ticketno() {
        return h_ticketno;
    }

    public void setH_ticketno(String h_ticketno) {
        this.h_ticketno = h_ticketno;
    }

    public int getC_id() {
        return c_id;
    }

    public void setC_id(int c_id) {
        this.c_id = c_id;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public String getUsepackage() {
        return usepackage;
    }

    public void setUsepackage(String usepackage) {
        this.usepackage = usepackage;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String execute(){
        SellServices sellServices=new SellServices();
        sellServices.InsertSellList(h_no,h_name,h_size,h_r,h_n,h_num,h_unit,h_senddate,h_ticketno,usepackage,remark,c_name);
        sellServices.sell(h_no,h_size,h_r,h_n,h_num);
        sellServices.All();
        return "success";
    }
}
